package com.zkthink.ceres.applet.notice.controller;

import com.zkthink.base.R;
import com.zkthink.ceres.applet.notice.domain.vo.NoticePageVo;
import com.zkthink.ceres.applet.notice.service.AppletNoticeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Author cmz
 * @Date 2024-04-27 11:47
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/applet/notice")
@Api(value = "notice", tags = "通知")
public class NoticeController {
    @Resource
    private AppletNoticeService appletNoticeService;
    
    @ApiOperation(value = "获取通知", notes = "获取通知")
    @PostMapping(value = "/getMemberNotice")
    public R getMemberNotice(@RequestBody NoticePageVo noticePageVo) {
        return appletNoticeService.getMemberNotice(noticePageVo);
    }
}
